package com.pmt.jnipractice

object NativeUtils {
    init {
        System.loadLibrary("jnipractice")
    }

    /**
     * A native method that is implemented by the 'jnipractice' native library,
     * which is packaged with this application.
     */
    external fun stringFromJNI(): String

    external fun concatStrings(str1:String, str2:String): String

    /**
     * 字符串加密功能 - 凯撒密码
     * @param input 待加密的字符串
     * @param shift 偏移量
     * @return 加密后的字符串
     */
    external fun encryptString(input: String, shift: Int): String

}